<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Random String</title>



    <script language="javascript" type="text/javascript">

var m_w = 123456789;
var m_z = 987654321;
var mask = 0xffffffff;

// Takes any integer
function seed(i) {
    m_w = i;
}

      function randomString() {

  var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz#.*+-_={}";
  var string_length = 15;
  var randomstring = '';
  for (var i=0; i<string_length; i++) {
    var rnum = Math.floor(Math.random() * chars.length);
    randomstring += chars.substring(rnum,rnum+1);
  }

  document.randform.randomfield.value = randomstring;
}
</script>

  </head>
  <body onload="randomString();">
    <form name="randform">
      <input type="button" value="Create Random String" onClick="randomString();">&nbsp;
      <input type="text" name="randomfield" value="">
    </form>
  </body>
</html>
